package com.smartcommunity.service.building;

import com.smartcommunity.bean.model.Result;
import com.smartcommunity.entity.building.*;
import com.smartcommunity.entity.village.Building;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author nieming
 * @descrition
 * @date 2020/5/12
 */
public interface BuildingService {

    BuildingEntity getBuilding(Long buildingId);

    @Transactional
    Result add(BuildingAddReq buildingAddReq);

    List<Building> list(BuildingListReq buildingListReq);

    boolean exits(BuildingExitsReq buildingExitsReq);
    
    BuildingEntity getExistBildings(BuildingExitsReq buildingExitsReq);

    @Transactional
    Result edit(BuildingEditReq buildingEditReq);

    @Transactional
    void delete(Long buildingId);

    BuildingDetailResp detail(Long buildingId);
}
